<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>百商汇</title>
	<meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0,minimum-scale = 1.0,user-scalable = no,width = device-width">
	<meta name="format-detection" content="telephone=no" />
	<link rel="stylesheet" type="text/css" href="../csses/messageDetails.css">
</head>
<body>
	<div class="messageDetails_title">
		消息详情
		<img src="../image/back.png" onclick="goBack()" class="back">
	</div>
	<div class="messageDetails_box">
		<div class="messageTitle">
			<p class="title"></p>
			<p class="time"></p>
		</div>
		<div class="messageContent">
			
		</div>
	</div>


	<script type="text/javascript" src="../lib/flexible.js"></script>
	<script type="text/javascript" src="../lib/jquery-1.10.1.min.js"></script>
	<script type="text/javascript">
		function goBack(){
			window.history.back();
		}

		$.ajax({
			type : 'post',
			url : '/api/v1/message/detail',
			data : {
				paramStr: "{'id':'" + sessionStorage.dataid + "'}"
			},
			dataType : 'json',
			timeout : 10000,
			success : function (data) {
				if(data.code == 200){
					var obj = JSON.parse(data.data);
					$('.title').text(obj.title);
					$('.time').text(obj.createTime);
					$('.messageContent').text(obj.content);
				}
			},
			error : function (xhr,type,errorThrown) {
				// alert('未知错误');
			}
		});
	</script>
</body>
</html>